{% extends "@CoreBundle/layout/main.html.twig" %}

{% block page_title %}
	{{ title }}
{% endblock %}

{% block body_javascript %}
	{% if draftType %}
		<script>
var draftType = {{ draftType }};
var admin_draft_getLatestByType = "{{ path('admin_draft_getLatestByType', {'type': draftType}) }}";
var admin_draft_autoSave = "{{ path('admin_draft_autoSave') }}";
var admin_draft_getById = "{{ path('admin_draft_getById') }}";
		</script>
		{{ encore_entry_script_tags('core_draft') }}
	{% else %}
		{{ parent() }}
	{% endif %}
{% endblock %}

{% block page %}
	{{ body|raw }}
{% endblock %}
